package org.dromara.erp.service;

import org.dromara.common.mybatis.core.domain.AuditDto;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.erp.domain.ErpWarehousing;

import java.util.Collection;
import java.util.List;

/**
 * 采购入库Service接口
 *
 * @author Mr Lei
 * @date 2024-06-05
 */
public interface IErpWarehousingService {

    /**
     * 查询采购入库
     */
    ErpWarehousing queryById(Long id);

    /**
     * 查询采购入库列表
     */
    TableDataInfo<ErpWarehousing> queryPageList(ErpWarehousing bo, PageQuery pageQuery);

    /**
     * 查询采购入库列表
     */
    List<ErpWarehousing> queryList(ErpWarehousing bo);

    /**
     * 新增采购入库
     */
    Boolean insert(ErpWarehousing bo);

    /**
     * 修改采购入库
     */
    Boolean update(ErpWarehousing bo);

    /**
     * 校验并批量删除采购入库信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
    /*审核*/
    void updateAudit(AuditDto dto);
    /*生成默认标题*/
    String defaultTitle(String formatDate);
}
